package com.lframework.starter.web.inner.vo.sort;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Objects;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class SortVo {
    /**
     * 排序字段
     */
    private String sortField;
    /**
     * 排序类型
     */
    private String sortOrder;

    @Override
    public int hashCode() {
        return Objects.hash(sortField);
    }
}
